//
//  KKNavigationController.m
//  FreightAssistant
//
//  Created by leo on 15/10/27.
//  Copyright © 2015年 leo. All rights reserved.
//

#import "KKNavigationController.h"

@interface KKNavigationController () <UIGestureRecognizerDelegate>

@end

@implementation KKNavigationController

- (void)loadView {
    [super loadView];
    
    self.navigationBar.barTintColor = [UIColor colorWithHexString: @"#2eb1e7"];
    
    NSDictionary *attributes=[NSDictionary dictionaryWithObjectsAndKeys:[UIColor whiteColor],NSForegroundColorAttributeName,[UIFont systemFontOfSize: 18],NSFontAttributeName, nil];
    [self.navigationBar setTitleTextAttributes:attributes];
    
    self.interactivePopGestureRecognizer.delegate = self;
    self.navigationItem.hidesBackButton = true;
    [[UIBarButtonItem appearance] setBackButtonTitlePositionAdjustment:UIOffsetMake(NSIntegerMin, NSIntegerMin) forBarMetrics:UIBarMetricsDefault];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
